package main

import (
	"fmt"
	"runtime"
)

func main() {
	runtime.GOMAXPROCS(1)
	fmt.Printf("runtime.NumCPU(): %d\n\r", runtime.NumCPU())
	go sayHello()
	go sayWorld()
	var str string
	fmt.Scan(&str)
}

func sayHello() {
	for i := 0; i < 50; i++ {
		fmt.Print("hello ")
		runtime.Gosched()
	}
}

func sayWorld() {
	for i := 0; i < 50; i++ {
		fmt.Println("world")
		runtime.Gosched()
	}
}
